<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" template="layout/template.xhtml"
	xmlns:pm="http://primefaces.org/mobile" contentType="text/html"
	renderKitId="PRIMEFACES_MOBILE">
	<ui:define name="body">
		<h:form>
			<p:dataList type="inset" styleClass="ui-li-custom">
				<f:attribute name="swatch" value="e" />
				<f:attribute name="dividerSwatch" value="e" />
				<f:facet name="header">预约信息</f:facet>
				<p:outputPanel layout="block">
					<p:outputLabel for="mrName">会议室名称</p:outputLabel>
					<h:inputText id="mrName"
						value="#{meetingRoomBooking.meetingRoom.mrName}" />
					<p:outputLabel for="meetingStartTime" styleClass="ui-input-text">会议开始时间</p:outputLabel>
					<p:calendar id="meetingStartTime" required="true" stepMinute="10"
						locale="pt_BR" value="#{meetingRoomBooking.meetingStartTime}"
						pattern="yyyy/MM/dd HH:mm"
						timeZone="#{meetingRoomBookingListAction.timeZone}" />
					<p:outputLabel for="meetingEndTime" styleClass="ui-input-text"
						value="会议结束时间" />
					<p:calendar id="meetingEndTime" required="true" stepMinute="10"
						locale="pt_BR" value="#{meetingRoomBooking.meetingEndTime}"
						pattern="yyyy/MM/dd HH:mm"
						timeZone="#{meetingRoomBookingListAction.timeZone}" />
					<p:outputLabel for="bookingUserId">联系人</p:outputLabel>
					<h:inputText id="bookingUserId"
						value="#{meetingRoomBooking.bookingUserId}" />
					<p:outputLabel for="bookingUserTel">联系电话</p:outputLabel>
					<h:inputText id="bookingUserTel"
						value="#{meetingRoomBooking.bookingUserTel}" />
					<p:outputLabel for="meetingTitle">会议主题</p:outputLabel>
					<p:inputTextarea id="meetingTitle"
						value="#{meetingRoomBooking.meetingTitle}" maxlength="100"
						autoResize="false" />
					<p:outputLabel for="meetingMemo">备注</p:outputLabel>
					<p:inputTextarea id="meetingMemo"
						value="#{meetingRoomBooking.meetingMemo}" maxlength="100"
						autoResize="false" />
					<br />
					<p>
						<h:outputText value="*" style="color:red;" />
						required fields
					</p>
				</p:outputPanel>
			</p:dataList>
			<pm:buttonGroup orientation="horizontal">
				<h:commandButton value="预约"
					action="#{meetingRoomBookingAction.create}"
					rendered="#{meetingRoomBooking.mrbId==null}" />
				<h:commandButton value="修正"
					action="#{meetingRoomBookingAction.update}"
					rendered="#{meetingRoomBooking.mrbId!=null and false}" />
				<h:commandButton value="删除"
					action="#{meetingRoomBookingAction.delete}"
					rendered="#{meetingRoomBooking.mrbId!=null}" />
				<h:commandButton value="预约"
					action="#{meetingRoomBookingAction.booking}"
					rendered="#{meetingRoomBooking.mrbId!=null and false}" />
				<s:button value="取消" action="cancel" />
			</pm:buttonGroup>
		</h:form>
	</ui:define>
</ui:composition>
